<%@page import="com.user.entity.dto.StudentDTO"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>学校在线考试系统</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.css" rel="stylesheet">
	<link href="css/bootstrap-table.css" rel="stylesheet">
	<link href="css/mystyle.css" rel="stylesheet">
	<link href="css/bootstrap-select.min.css" rel="stylesheet">
	<link href="css/test.css">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link href="css/font-awesome.min.css" rel="stylesheet">
<%!StudentDTO student = new StudentDTO(); %>
<%if(session.getAttribute("student")==null){
	response.sendRedirect("stu_login");
} else{
	student = (StudentDTO)session.getAttribute("student");
}%>
  </head>
  <body>
	<nav class="navbar navbar-default" role="navigation" style="background-color:white;">
		<div class="container">

			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
						data-target="#example-navbar-collapse">
					<span class="sr-only">切换导航</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<div class="navbar-brand">学校在线考试系统</div>
			</div>
			<div class="collapse navbar-collapse" id="example-navbar-collapse">
				<ul class="nav navbar-nav">
					<li class="nav_li"><a href="stu_index" >个人中心</a></li>
					<li class="my_active"><a href="stu_score">成绩</a></li>
					<li class="nav_li"><a href="stu_course">选课</a></li>
					<li class="nav_li"><a href="stu_updatePwd">密码修改</a></li>
				</ul>
				<ul class="nav navbar-nav navbar-right">
					<li class="navbar-text">学生:<%=student.getName() %></li>
					<li><a href="/exam/student/logout"><span class="fa fa-sign-out"></span>注销</a></li>
				</ul>
			</div>
		</div>
	</nav>
	<div class="container">
		<div class="row">
			<div class="personal">
				<div class=" panel panel-info">
					<div class="panel-heading">
						<h3 class="panel-title"><span class="fa fa-code"></span>&nbsp;课程考试成绩</h3>
					</div>
					
					<div class="panel-body">
						<table class="table table-striped" id="scoreList"></table>	
				    </div>
					
				</div>
				
			</div>
		</div>
	</div>
	<div id="toolbar" class="btn-group form-inline">
		<div class="form-group">
			<select name="courseId" id="search_course" class="selectpicker" data-live-search="true"></select>
			<button onclick="search()" class="btn btn-primary"><span class="fa fa-search"></span>查找</button>
			<button onclick="clearSearch()" class="btn btn-default"><span class="fa fa-close"></span>清空</button>
		</div>
      </div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery-1.12.4.js"></script>
    <script src="js/jquery-form.js" type="text/javascript"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
    <script src="js/bootstrap-select.min.js"></script>
	<script src="js/bootstrap-table.js"></script>
	<script src="js/bootstrap-table-zh-CN.js"></script>
	
	<script src="js/stu/ScoreController.js"></script>
  </body>
</html>